Xbasic

*WORD_INSERT Function

Syntax

New_String as C = *WORD_INSERT(text as c,insert as c,word as n,separator as c)

Arguments

New_String

The modified text with word(s) inserted.

text

The original unmodified text.

insert

The word(s) to insert.

word

The position of inserted word in the list. Numeric

separator

Default The word separator character(s). Character

Description

Insert word(s) into text at word position.

Discussion

The *WORD_INSERT() function adds one or more words to a string.

Example

? *word_insert("one two four", "three", 3, " ")
= "one two three four"

See Also